package com.yangaobo.service;

import com.github.pagehelper.PageInfo;
import com.yangaobo.dto.StudentInsertDTO;
import com.yangaobo.dto.StudentPageDTO;
import com.yangaobo.dto.StudentUpdateDTO;
import com.yangaobo.entity.Student;
import com.yangaobo.excel.StudentExcel;
import com.yangaobo.vo.StudentVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author 杨奥博
 */
public interface StudentService {
    int insert(StudentInsertDTO dto);

    Student select(Long id);

    List<StudentVO> list();

    PageInfo<Student> page(StudentPageDTO dto);

    int update(StudentUpdateDTO dto);

    int delete(Long id);

    int deleteBatch(List<Long> ids);

    List<StudentExcel> getExcelData();

    String uploadAvatar(MultipartFile newFile, Long id);

}
